<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>
<?=$page_title?>
</title>
<base href="<?=base_url()?>" />
<script type="text/javascript" src="js/jquery.js"></script>
<!--time-->
<link rel="stylesheet" href="themes/base/jquery.ui.all.css">
<script src="js/ui/jquery.ui.core.js"></script>
<script src="js/ui/jquery.ui.widget.js"></script>
<script src="js/ui/jquery.ui.datepicker.js"></script>
<link rel="stylesheet" href="css/demos.css">
<!--弹窗-->
<link href="css/clientpublic.css" rel="stylesheet" type="text/css">
<link href="css/esui.css" rel="stylesheet" type="text/css">
<link href="css/initaccount.css" rel="stylesheet" type="text/css">
<link href="css/guo.css" rel="stylesheet" type="text/css">

<script type="text/javascript" src="js/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
<script type="text/javascript" src="js/fancybox/jquery.easing-1.3.pack.js"></script>
<script type="text/javascript" src="js/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
<link rel="stylesheet" type="text/css" href="js/fancybox/jquery.fancybox-1.3.4.css" />
<link rel="stylesheet" type="text/css" href="css/jia.css" />
<script language='javascript' src='js/suggest.js'></script>
<link href="js/suggest.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
	$(document).ready(function() {
		jQuery.ajaxSetup ({cache:false}); /*让ajax不调用浏览的缓存*/
		$(".various1").fancybox({
		'titleShow'     : false,
		'transitionIn'	: 'elastic',
		'transitionOut'	: 'elastic',
		'easingIn'      : 'easeOutBack',
		'easingOut'     : 'easeInBack',
		'hideOnOverlayClick' : false,
		'onComplete'	: function() {
				var suggest = new GoogleSuggest("myform", "customer_name", 0,'');
			}
		});

		$("#contract_id").click(function(){
            var subject=$.trim($("#contract_name").val());
            if(subject == ""){
              alert("请输入名称后查询");
              $("#contract_name").focus();
            }else{
				location.href="<?=base_url()?>index.php/contract/check/"+subject+"";
              }
		})

		$("#payment_plan").click(function(){
            var subject=$.trim($("#payment_plan_name").val());
            if(subject == ""){
              alert("请输入名称后查询");
              $("#payment_plan_name").focus();
            }else{
				location.href="<?=base_url()?>index.php/payment_plan/check/"+subject+"";
              }
		})
	});
</script>
	<style type="text/css">
		.calendar {
			font-family: Arial; font-size: 12px; width:98%;
		}
		table.calendar {
			margin: auto; border-collapse: collapse;
		}
		.calendar .days td {
			width:265px;
			height: 130px;
			border: 1px solid #ffcc99;
			vertical-align: top;
		}
		.calendar .days td.hover {background-color: #FFF;}
		.calendar .highlight {font-weight: bold;}
		.g_tit_cont{ text-align:center; height:25px; line-height:25px; background-color:#ffcc99; color:#4e74c5; border-left:1px solid #ffcc99; border-right:1px solid #ffcc99; border-bottom:1px solid #ffcc99;}
		.rc_tit{ height:38px; line-height:38px;}
		.rc_tit th a{ padding:0 10px; font-weight:bold;}
		.rc_tit th span{ font-size:16px; padding:0 10px; color:#666;}
		.content{ font-size:12px; color:#666; border-left:1px solid #fff; border-right:1px solid #fff; background-color:#fff; font-weight:normal;}
		.content a{ color:#666; text-decoration:none;}
		.content a:hover{ color:#000; text-decoration:underline;}

		.content_bg{ background:url(images/left_bg.gif) left center no-repeat #cae7e8; height:19px; line-height:19px; display:block;  padding-left:2px; border-top:1px solid #fff; border-bottom:1px solid #fff; overflow:hidden;}
		.content_bg1{ background:url(images/left_bg.gif) left center no-repeat #fce0a6; height:20px; line-height:19px; display:block; padding-left:2px; border-top:1px solid #fff; overflow:hidden;}
		.content_bg2{ background:url(images/left_bg.gif) left center no-repeat #e6f1d8; height:19px; line-height:19px; display:block; padding-left:2px; border-top:1px solid #fff; overflow:hidden;}

		.content_bg span{ background:url(images/right_bg.gif) right center no-repeat; height:19px; line-height:19px; display:block; cursor:pointer;}
		.content_bg1 span{ background:url(images/right_bg.gif) right center no-repeat; height:19px; line-height:19px; display:block; cursor:pointer;}
		.content_bg2 span{ background:url(images/right_bg.gif) right center no-repeat; height:19px; line-height:19px; display:block; cursor:pointer;}
		.day_num{ background-color:#ffefdf; font-size:12px; padding:5px;}
		.day_num a{ margin:0 3px;}
		.g_td_bg{ background-color:#AFD788;}
	</style>
</head>
<body>
    <div id="Holder">
		<div id="MainPage">

			<?php include('top.php')?>
			<div id="Subnav">
				<ul>
					<li class="active show"></li>
				</ul>
			</div>

			<div id="MainBody">
				<?php echo $calendar; ?>
			</div>

			<?php include('footer.php')?>
		</div>
	</div>
    <script type="text/javascript">
		function editaction_load(){
			var year=editaction_argv_year;
			location.href="<?=base_url()?>index.php/schedule/display/"+year+"/"+$("#month").val()+"";
		}
		function editaction_load2(){
			var month=editaction_argv_month;
			location.href="<?=base_url()?>index.php/schedule/display/"+$("#year").val()+"/"+month+"";
		}
    </script>
</body>
</html>